package top.ljlgithub.api.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import top.ljlgithub.api.bean.*;

import java.util.List;
@Mapper
@Component
public interface GoodsMapper {
    List<Goods> getGoodsList(String query,Integer startIndex,Integer pagesize);
    Integer getTotal(String query);
    void deleteGoods(Integer id);
    GoodsInfo findGoodsById(Integer id);
    List<Pic> getPicList(Integer id);
    List<AttrGood> getAttrGoodList(Integer id);
    void addGoods(AddGoods goods);
    void addPic(Pic pic);
    void addAttr(AttrGood attrGood);
    void updateGoods(AddGoods addGoods);
}
